package com.ostrich.cloud.ostrichGoodsService.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.ostrich.cloud.ostrichGoodsService.common.status.OstrichSalesStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 销售量
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sales")
@ApiModel(value="Sales对象", description="销售量")
public class Sales implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "sales_id", type = IdType.AUTO)
    private Integer salesId;

    @ApiModelProperty(value = "订单完成时间")
    private Date time;

    @ApiModelProperty(value = "订单号")
    private Long orderNumber;

    @ApiModelProperty(value = "店家id")
    private Integer businessmanId;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "CANCEL退单|FINISH完成")
    private OstrichSalesStatus status;


}
